﻿<!DOCTYPE html>
<html lang="en">
<head>
    <title>宾果高校</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="../css/sweetalert.min.css" />
    <script src="../js/jquery-1.12.2.min.js"></script>
    <script src="../js/common.js"></script>
    <script src="../js/layer.js"></script>
    <script src="../js/angular.min.js"></script>
    <script src="../js/Controller.js"></script>
    <script src="../js/sweetalert.min.js"></script>
</head>
<body id="view-community">
    <div id="searchPage"></div>
    <div class="main">
        <div ng-app="myApp" class="wrap">
            <div class="panel panel-default">
                <div class="panel-body">
                    <div class="togglebar">
                        <ul class="nav nav-tabs nav-justified">
                            <li class="active"><a id="showBox1">我创建的社团</a></li>
                            <li><a id="showBox2">我绑定的社团</a></li>
                        </ul>
                    </div>
                    <div style="margin-top: 5px;"></div>
                    <div id="box1">
                        <h2>社团信息</h2>
                        <table ng-controller="assocCreatedByMeCtrl" ng-model="names" class="table table-hover">
                            <tr>
                                <td>高校名称</td>
                                <td>社团名称</td>
                                <td>社团类型</td>
                                <td>社团级别</td>
                                <td>社团星级</td>
                                <td>社团规模</td>
                                <td>社团当前绑定人数</td>
                                <td>社团所属社团活动书总数</td>
                                <td>社团活动书累计获得赞助金额</td>
                                <td>社团活动书活动累计获得点赞数</td>
                                <td>社团口令</td>
                                <td>社团积分</td>
                                <td>创建时间</td>
                            </tr>
                            <tr>
                                <td>{{names.SchoolName}}</td>
                                <td>{{names.Name}}</td>
                                <td>{{names.Nature}}</td>
                                <td>{{names.Type}}</td>
                                <td>{{names.AssociationGrade|AssociationGrade}}</td>
                                <td>{{names.ASizeDiscription}}</td>
                                <td>{{names.BindAmount}}</td>
                                <td>{{names.ProjectAmount}}</td>
                                <td>{{names.TotalMoney}}</td>
                                <td>{{}}</td>
                                <td>{{names.SelfPassword}}</td>
                                <td>{{names.Points}}</td>
                                <td>{{names.CreateTime|date:'yyyy-MM-dd'}}</td>
                            </tr>
                            <!--<tr>
                                <td>广州大学</td>
                                <td>学生会</td>
                                <td>组织类-学生会</td>
                                <td>校级</td>
                                <td>官方代理社团</td>
                                <td>1-10人</td>
                                <td>80</td>
                                <td>3</td>
                                <td>15000.0</td>
                                <td>6666</td>
                                <td>1111</td>
                                <td>1000</td>
                                <td>2016/08/21 12:11:22</td>
                            </tr>-->
                        </table>
                        <h2>社团所属活动书信息</h2>
                        <table ng-controller="assocBooksCtrl" class="table table-hover">
                            <tr>
                                <td>社团所属社团活动书</td>
                                <td>社团活动书创建人</td>
                                <td>创建人联系电话</td>
                                <td>获得点赞数</td>
                                <td>活动书状态</td>
                                <td>已获得赞助金额</td>
                                <td>创建时间</td>
                            </tr>
                            <tr ng-repeat="x in names">
                                <td>{{x.ProjectName}}</td>
                                <td>{{x.Student.Name}}</td>
                                <td>{{x.Student.User.Phone}}</td>
                                <td>{{x.LikedCount}}</td>
                                <td>{{x.Status|checkProjectStatus}}</td>
                                <td>{{}}</td>
                                <td>{{x.CreateTime|date:'yyyy-MM-dd'}}</td>
                            </tr>
                            <!--<tr>
                                <td><a href="">活动书1</a></td>
                                <td>杨志斌</td>
                                <td>18588254535</td>
                                <td>500</td>
                                <td>发布中</td>
                                <td>无</td>
                                <td>2016/08/21 12:11:22</td>
                            </tr>-->
                        </table>
                        <h2>绑定人信息</h2>
                        <table ng-controller="assocStudentCtrl" class="table table-hover">
                            <tr>
                                <td>绑定人姓名</td>
                                <td>联系电话</td>
                            </tr>
                            <tr ng-repeat="x in names">
                                <td>{{x.Name}}</td>
                                <td>{{x.User.Phone}}</td>
                            </tr>
                            <!--<tr>
                                <td>王二</td>
                                <td> </td>
                            </tr>-->
                        </table>
                    </div>
                    <div id="box2">
                        <table ng-controller="myAssocCtrl" class="table table-hover">
                            <tr>
                                <td>高校名称</td>
                                <td>社团名称</td>
                                <td>社团类型 </td>
                                <td>社团级别</td>
                                <td>社团星级</td>
                                <td>社团规模</td>
                                <td>社团当前绑定人数</td>
                                <td>社团所属社团活动书（发布中）</td>
                                <td>社团活动书累计获得赞助金额</td>
                                <td>社团积分</td>
                                <td>绑定时间</td>
                            </tr>
                            <tr ng-repeat="x in names">
                                <td>{{x.SchoolName}}</td>
                                <td>{{x.Name}}</td>
                                <td>{{x.Type}}</td>
                                <td>{{x.Nature}}</td>
                                <td>{{x.AssociationGrade|AssociationGrade}}</td>
                                <td>{{x.ASizeDiscription}}</td>
                                <td>{{x.DeptAmount}}</td>
                                <td>
                                    <div ng-repeat="y in x.ListProject"><a href="#" tag="{{y.ProjectNO}}" onclick="Go(this, 'AssocBooks')">{{y.ProjectName}}</a></div>
                                </td>
                                <td>{{x.TotalMoney}}</td>
                                <td>{{x.Points}}</td>
                                <td>{{x.CreateTime|date:'yyyy-MM-dd'}}</td>
                            </tr>
                            <!--<tr>
                                <td>广州大学</td>
                                <td>社联</td>
                                <td>组织类-学生会</td>
                                <td>校级</td>
                                <td>金牌社团</td>
                                <td>11-30人</td>
                                <td>80</td>
                                <td>
                                    <div><a href="">活动书1</a></div>
                                    <div><a href="">活动书2</a></div>
                                </td>
                                <td>1500</td>
                                <td>320</td>
                                <td>2016/08/21 12:11:22</td>
                            </tr>-->
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
<script>

    $("#searchPage").load("header.html", function () {
        SetCss("Assoc");
    });

    function Go(obj, mode) {

        var id = $(obj).attr("tag");

        layer.ready(function () {

            layer.open({
                type: 2,
                title: '宾果高校',
                fix: false,
                shadeClose: true,
                maxmin: false,
                area: ['1000px', '500px'],
                content: 'Message.html?mode=' + mode + '&id=' + id,
                end: function () {

                }
            });
        });
    }
</script>